﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AutoRetailsDLL.Workers.PinDuoDuo
{
    public class PinDuoDuoAddGoodModel_In
    {
        public string shopUid { get; set; }
        public string outGoodsSn { get; set; }
        public string spuId { get; set; }
        /// <summary>
        /// 工艺
        /// </summary>
        public string craft { get; set; }
        /// <summary>
        /// 生产公司
        /// </summary>
        public string productionCompany { get; set; }
        /// <summary>
        /// 商品颜色
        /// </summary>
        public string goodsColor { get; set; }
        /// <summary>
        /// 花色
        /// </summary>
        public string goodsPattern { get; set; }
        /// <summary>
        /// 商品标题
        /// </summary>
        public string onlineGoodsTitle { get; set; }
        /// <summary>
        /// 品牌
        /// </summary>
        public string brand { get; set; }
        /// <summary>
        /// 适用品牌
        /// </summary>
        public string platformBrand { get; set; }
        /// <summary>
        /// 适用型号
        /// </summary>
        public List<Modelcode> modelCode { get; set; } = new List<Modelcode>();
        /// <summary>
        /// 保护套质地
        /// </summary>
        public string goodsTexture { get; set; }
        /// <summary>
        /// 款式
        /// </summary>
        public string goodsDesign { get; set; }
        /// <summary>
        /// 流行元素
        /// </summary>
        public string fashionElement { get; set; }
        /// <summary>
        /// 风格
        /// </summary>
        public string goodsStyle { get; set; }
        /// <summary>
        /// 商品参考价
        /// </summary>
        public string goodsReferencePrice { get; set; }
        /// <summary>
        /// 满减折扣
        /// </summary>
        public string fullDiscount { get; set; }
        /// <summary>
        /// 发货时间（24/48小时）
        /// </summary>
        public string shipmentTime { get; set; }
        /// <summary>
        /// 七天无理由退货，1支持，0不支持
        /// </summary>
        public int supply7DayReturn { get; set; }
        /// <summary>
        /// 是否草稿
        /// </summary>
        public int isDraft { get; set; }
        /// <summary>
        /// 规格类型（型号-颜色）
        /// </summary>
        public string specifications { get; set; }
        /// <summary>
        /// 运费模板
        /// </summary>
        public string freightTemplate { get; set; }
        /// <summary>
        /// 规格1
        /// </summary>
        public List<string> spec1 { get; set; } = new List<string>();
        /// <summary>
        /// 规格1
        /// </summary>
        public List<string> spec2 { get; set; } = new List<string>();

        public List<Materialfile> materialFile { get; set; } = new List<Materialfile>();

    }

    public class Materialfile
    {
        public string materialType { get; set; }
        public List<Speclist> specList { get; set; } = new List<Speclist>();
    }

    public class Speclist
    {
        public string spec { get; set; }
        public string specModel { get; set; }
        public string tmSpecModel { get; set; }
        /// <summary>
        /// 拼单价
        /// </summary>
        public float price { get; set; }
        /// <summary>
        /// 拼单价单位
        /// </summary>
        public string priceUnit { get; set; }
        /// <summary>
        /// 单买价
        /// </summary>
        public float singlePrice { get; set; }
        /// <summary>
        /// 库存
        /// </summary>
        public int stockNum { get; set; }
        public float discount { get; set; }
        public string textureCode { get; set; }
        /// <summary>
        /// 预览图
        /// </summary>
        public string imageName { get; set; }
        public int hashCode { get; set; }
        public string  vid { get; set; }
        public string skuCode { get; set; }
    }

    public class Modelcode
    {
        public string pddApplyBrand { get; set; }
        public string pddApplyModel { get; set; }
    }

    public class Rootobject
    {
        public string shopUid { get; set; }
        public string outGoodsSn { get; set; }
        public string spuId { get; set; }
        /// <summary>
        /// 工艺
        /// </summary>
        public string craft { get; set; }
        /// <summary>
        /// 生产公司
        /// </summary>
        public string productionCompany { get; set; }
        /// <summary>
        /// 商品颜色
        /// </summary>
        public string goodsColor { get; set; }
        /// <summary>
        /// 花色
        /// </summary>
        public string goodsPattern { get; set; }
        /// <summary>
        /// 商品标题
        /// </summary>
        public string onlineGoodsTitle { get; set; }
        /// <summary>
        /// 品牌
        /// </summary>
        public string brand { get; set; }
        /// <summary>
        /// 适用品牌
        /// </summary>
        public string platformBrand { get; set; }
        /// <summary>
        /// 适用型号
        /// </summary>
        public List<Modelcode> modelCode { get; set; } = new List<Modelcode>();
        /// <summary>
        /// 保护套质地
        /// </summary>
        public string goodsTexture { get; set; }
        /// <summary>
        /// 款式
        /// </summary>
        public string goodsDesign { get; set; }
        /// <summary>
        /// 流行元素
        /// </summary>
        public string fashionElement { get; set; }
        /// <summary>
        /// 风格
        /// </summary>
        public string goodsStyle { get; set; }
        /// <summary>
        /// 商品参考价
        /// </summary>
        public string goodsReferencePrice { get; set; }
        /// <summary>
        /// 满减折扣
        /// </summary>
        public string fullDiscount { get; set; }
        /// <summary>
        /// 发货时间（24/48小时）
        /// </summary>
        public string shipmentTime { get; set; }
        /// <summary>
        /// 七天无理由退货，1支持，0不支持
        /// </summary>
        public int supply7DayReturn { get; set; }
        /// <summary>
        /// 是否草稿
        /// </summary>
        public int isDraft { get; set; }
        /// <summary>
        /// 规格类型（型号-颜色）
        /// </summary>
        public string specifications { get; set; }
        /// <summary>
        /// 规格1
        /// </summary>
        public List<string> spec1 { get; set; } = new List<string>();
        /// <summary>
        /// 规格1
        /// </summary>
        public List<string> spec2 { get; set; } = new List<string>();

        public List<Materialfile> materialFile { get; set; } = new List<Materialfile>();
        public int isFolt { get; set; }
        public string goodsTextureName { get; set; }
        public string function { get; set; }
        public string wareLocation { get; set; }
        public string goodsMobileModel { get; set; }
        public string customerMobile { get; set; }
        public string freightTemplate { get; set; }
        public int maximumPerOrder { get; set; }
        public int limitPerBuyer { get; set; }
        public int discount { get; set; }
    } 
}
